<!-- 购车申请管理|detail:详情,board:上牌,audit:审核,register:登记,carcheck:车辆审批,add:申请 -->
<div class="" >
	{if $notPopup}
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('index')}">业务管理</a></li>
		<li><a href="{:url('index')}">车辆管理</a></li>
		<li class="am-active">购车申请</li>
	</ol>
	{/if}
	<div >
		<form class="layui-form" action="" method="get">
			<div class="layui-form-item">
				{if $Think.get.is_board}
				<input type="hidden" value="{$Think.get.is_board}"/>
				{else/}
				{/if}
				<div class="layui-input-inline">
					<input type="text" class="layui-input" name="car_audit_id" placeholder="购车申请单号" value="{$Think.get.car_audit_id}">
				</div>
				<div class="layui-input-inline">
					<input type="text" class="layui-input" name="company_name" placeholder="请输入公司名" value="{$Think.get.company_name}">
				</div>
				<div class="layui-input-inline">
					<input type="text" class="layui-input" name="number" placeholder="请输入车牌号" value="{$Think.get.number}">
				</div>
				<div class="layui-input-inline">
					<select name="state" value="{$Think.get.state}">
						<option value="">全部</option>
						{if $Think.get.is_board}
						<option {$Think.get.state==1?selected:""} value="5">未上牌</option>
						<option {$Think.get.state==2?selected:""} value="6">已上牌</option>						
						{else/}
						<option {$Think.get.state==1?selected:""} value="1">待审核</option>
						<option {$Think.get.state==2?selected:""} value="2">已审核</option>
						<option {$Think.get.state==3?selected:""} value="3">审核不通过</option>
						<option {$Think.get.state==4?selected:""} value="4">已登记</option>
						<option {$Think.get.state==5?selected:""} value="6">已审批</option>
						{/if}
						
					</select>
				</div>
				<div class="am-u-sm-4">
					<button type="submit" class="layui-btn layui-btn-normal">查询<i class="am-icon-search"></i></button> 
				</div>
			</div>
		</form>
	</div>
	<div class="am-u-sm-12">
		
		<div class="am-btn-group am-u-sm-12 am-btn-group-xs cl-p">
			<button class="layui-btn layui-btn-sm layui-btn-primary add" data-btn='add'><i class="layui-icon">&#xe654;</i>申请</button>
			<button type="button" class="layui-btn layui-btn-primary layui-btn-sm morefile" style="float: right;">审核车辆批量导入</button>
			<input type="file" class="carmorefile" style='display: none;'/>
		</div>
		<div class="table_margin_0">
		<table  class="layui-hide" id="buy" lay-filter="buy"></table>
		</div>
		<div id="page"></div>
		<script type="text/html" id="operation">
			{if $Think.get.is_board}
			{{#  if(d.state ==5){ }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="board" data-btn='board'>上牌</a>
			{{#  } else { }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			{{#  } }}
			{else/}
			{{#  if(d.state ==1){ }}
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="check" data-btn='audit'>审核</a>
			{{#  } else if(d.state ==2){ }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="register">登记</a>
			  {{#  } else if(d.state ==4){ }}
		 	<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="carcheck" data-btn='audit'>车辆审批</a>
			{{#  } else  if(d.state ==6){ }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="board" data-btn='board'>上牌</a>
			{{#  } else { }}
			<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail" data-btn='detail'>详情</a>
			{{#  } }}
			{/if}
		</script>
	</div>

</div>
<script src="{$static_dir}/assets/js/new_pages.js"></script>